Skip to content

Add support for response_cost for LiteLLM model for non streaming response#198

Closed
thetushargoyal wants to merge 4 commits into
google:mainfrom
thetushargoyal:main
Closed

Add support for response_cost for LiteLLM model for non streaming response#198
thetushargoyal wants to merge 4 commits into
google:mainfrom
thetushargoyal:main

Conversation

@thetushargoyal

Copy link
Copy Markdown

No description provided.

@Adithya-Krishnan-AK

Copy link
Copy Markdown

This is helpful feature to add, is it possible to extend to include usage_metadata with input and output token details from LiteLLM.

@thetushargoyal

Copy link
Copy Markdown
Author

@Adithya-Krishnan-AK > This is helpful feature to add, is it possible to extend to include usage_metadata with input and output token details from LiteLLM.

definitely, this can be added. @hangfei @Jacksunwei can I take up this issue officially and add full end to end support for this. I can send a plan before starting and once approved can start working on it.

@hangfei hangfei requested a review from selcukgun May 30, 2025 21:45
@hangfei

hangfei commented May 30, 2025

Copy link
Copy Markdown
Collaborator

@thetushargoyal thanks for your contribution. This is supported with latest wheel. If you still see any issues, please re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants